package com.deep.test


import org.apache.spark.mllib.linalg.{Matrix, Matrices}

/**
 * @author sw
 * @create 2023-06-02 11:19
 */
object Test05 {
  def main(args: Array[String]): Unit = {
    val dm: Matrix = Matrices.dense(3, 2, Array(1.0, 3.0, 5.0, 2.0, 4.0, 6.0))
    println(dm)

    val sm: Matrix = Matrices.sparse(3, 2, Array(0, 1, 3), Array(0, 2, 1), Array(9, 6, 8))
    println(sm)


  }
}
